package com.java.action;

import com.java.pojo.ComRole;
import com.java.service.IRoleService;
import com.opensymphony.xwork2.ActionSupport;

public class ShowEditRoleAction extends ActionSupport{
	private IRoleService roleservice;
	private int id;
	private ComRole role;
	
	public String execute(){
		
		role = roleservice.getRoleById(id);
		
		return SUCCESS;
	}

	public ComRole getRole() {
		return role;
	}

	public void setRoleservice(IRoleService roleservice) {
		this.roleservice = roleservice;
	}

	public void setId(int id) {
		this.id = id;
	}
}
